package com.example.academic_affairs_system.service.impl;

import com.example.academic_affairs_system.domian.pojo.Admin;
import com.example.academic_affairs_system.service.AdminService;
import com.example.academic_affairs_system.mapper.AdminMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Administrator
* @description 针对表【admin(管理员账号表)】的数据库操作Service实现
* @createDate 2025-07-11 12:54:46
*/
@Service
public class AdminServiceImpl implements AdminService{

    @Resource
    private AdminMapper adminMapper;
    @Override
    public Admin login(String adminName, String adminPassword) {
        Admin admin = null;
        admin = adminMapper.loginName(adminName, adminPassword);

        return admin;
    }
}




